 <template>    
    <div id="login">  
        <div class="container">
            <input type="text" class="userName"  placeholder="用户名"  name="userName">
        </div>
        <div class="container">
            <input type="text" class="password" placeholder="输入密码">
        </div>
        <div class="container">
            <input type="text" class="password" placeholder="确认密码">
        </div>
        <div class="container"> 
            <input type="text" class="phone" placeholder="手机号" name="phone" >
        </div>
        <div class="container">
            <input type="text" class="email" name="email" placeholder="email">
        </div>
        <div class="container"> 
              <div class="code_input"><input type="text" class="inp_code" name="pic_code" placeholder="请输入图形验证码"></div>
             <button class="getcode"><span>点击获取</span></button>
        </div>
      <div class="login">
          <button class="btn_login"><span>注册</span></button>
      </div>
      <img  class="code_img" src="~@/assets/pic.png" alt="">
    </div>
</template>

<script>
    export default {
        
    }
</script>

<style  scoped>
 *{
     margin: 0 auto;
     padding: 0;
 }
div.container{
    width: 600px;
    height: 33px;
    width: 420px;
    margin-top: 10px;
    font-size: 12px;
    position: relative;
}
input{
    -webkit-appearance: none;
    background-color: #fff;
    background-image: none;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #606266;
    display: inline-block;
    font-size: inherit;
    height: 40px;
    line-height: 40px;
    outline: 0;
    padding: 0 15px;
    -webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
    transition: border-color .2s cubic-bezier(.645,.045,.355,1);
    width: 100%;
}
.code_input{
    position: relative;
    font-size: 14px;
    display: inline-block;
    width: 100%;
}
.inp_code{
    background-color: #fff;
    background-image: none;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #606266;
    display: inline-block;
    font-size: inherit;
    height: 40px;
    line-height: 40px;
    outline: 0;
    padding: 0 15px;
    -webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
    transition: border-color .2s cubic-bezier(.645,.045,.355,1);
    width: 100%;
}
button.getcode{
    color: #fff;
    background-color: #00a1d6;
    border-color: #00a1d6;
    width: 130px;
    height: 36px;
    position: absolute;
    right: 2px;
    top: 2px;
    padding: 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius:4px;
}
.login{
    width: 420px;
    margin: 0 auto;
    margin-top: 17px;
    font-size: 12px;
    position: relative;
    background: #999797;
     
}
.btn_login{
    width: 100%;
    height: 40px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    background: #f5f5f5;
    border: 1px solid #dcdfe6;
    color: #606266;
    -webkit-appearance: none;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: 0;
    margin: 0;
    -webkit-transition: .1s;
    transition: .1s;
    font-weight: 500;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 4px;   
} 
.code_img{
    position: relative;
    left: 600px;
    top: 10px;
}
 </style>